<template>
  <div id="app">
    <div id="aiEditor" style="height: 550px;  margin: 20px"></div>
  </div>
</template>

<script>
import {AiEditor} from "../public/dist/index.js";
import "../public/dist/style.css"
export default {
  name: 'App',
  components: {
  },
  mounted() {
    new AiEditor({
    element: "#aiEditor",
    placeholder: "点击输入内容...",
    content: 'AiEditor 是一个面向 AI 的开源富文本编辑器。 ',
    ai: {
        models: {
            spark: {
                appId: "***",
                apiKey: "***",
                apiSecret: "***",
            }
        }
    }
})
  }

}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
